package com.haier.npt.authention.authc;

import com.netflix.zuul.context.RequestContext;

public class RequestContextInfo {

	public RequestContext getCtx(){
		return RequestContext.getCurrentContext();
	}
	
	private static final String TOKEN = "token";

	private static final String USER_ID = "userid" ;
	
    public String getToken() {
        return (String)getCtx().get(TOKEN);
    }

    public void setToken(String token) {
        getCtx().set(TOKEN, token);
    }
	
    public Long getUserid() {
        return (Long)getCtx().get(USER_ID);
    }

    public void setUserid(Long userid) {
        getCtx().set(USER_ID, userid);
    }
}
